<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
$('#<?php echo $id?>').DataSource({url:'stats/getgoodstop',fields:[[
	{field:'goods_title',        title:'商品', width:190},	
	{field:'goods_amount',       title:'数量', width:80},
	{field:'goods_price',        title:'总价', width:120}, 			   
    ]], tools:[
	{instant:false},
	<?php if(in_array('EXPORT',$auth)){?>
	//{text:'导出',iconCls:'icon-large-chart',handler:function(){
			//var params=$('#<?php echo $id?>').DataSource('queryParams');
			//Core.Export(params,'monthorder/export');
	//}},
	<?php }?>

	],
	footer:true
});
</script>
